package com.dbz.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.dbz.entity.Demand;
import com.dbz.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DemandDao extends BaseMapper<Demand> {

    public IPage<Demand> selectPage(IPage<Demand> page, @Param(Constants.WRAPPER) Wrapper<Demand> queryMapper);

    /**
     *修改购买
     * @param deid
     * @return
     */
    public  int updateDemandiskaidanByid(@Param("deid") String deid);


    /**
     * 查询所有
     * @return
     */
    public List<Demand> selectDemandList();
}
